package com.unknow.first.dapp.admin.account.mapper;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

@ApiModel(description="t_flash_swap_pair")
@Data
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_flash_swap_pair")
public class FlashSwapPair {
    /**
     * id
     */
    @TableId(value = "swap_pair_id", type = IdType.AUTO)
    @ApiModelProperty(value="id")
    private Integer swapPairId;

    /**
     * 币种1id
     */
    @TableField(value = "coin1_id")
    @ApiModelProperty(value="币种1id")
    private Integer coin1Id;

    /**
     * 币种1名称
     */
    @TableField(value = "coin1_name")
    @ApiModelProperty(value="币种1名称")
    private String coin1Name;

    /**
     * 币种1简称
     */
    @TableField(value = "coin1_symbol")
    @ApiModelProperty(value="币种1简称")
    private String coin1Symbol;

    /**
     * 币种1兑换限制（每天）
     */
    @TableField(value = "coin1_limit_per_day")
    @ApiModelProperty(value="币种1兑换限制（每天）")
    private BigDecimal coin1LimitPerDay;

    @TableField(value = "coin1_limit_user_per_day")
    @ApiModelProperty(value="币种1用户兑换限制（每天）")
    private BigDecimal coin1LimitUserPerDay;

    @TableField(value = "coin1_max_limit")
    @ApiModelProperty(value="最大交易额度")
    private BigDecimal coin1MaxLimit;

    @TableField(value = "coin1_min_limit")
    @ApiModelProperty(value="最小交易额度")
    private BigDecimal coin1MinLimit;

    /**
     * 币种2id
     */
    @TableField(value = "coin2_id")
    @ApiModelProperty(value="币种2id")
    private Integer coin2Id;

    /**
     * 币种2名称
     */
    @TableField(value = "coin2_name")
    @ApiModelProperty(value="币种2名称")
    private String coin2Name;

    /**
     * 币种2简称
     */
    @TableField(value = "coin2_symbol")
    @ApiModelProperty(value="币种2简称")
    private String coin2Symbol;

    /**
     * 币种2兑换限制（每天）
     */
    @TableField(value = "coin2_limit_per_day")
    @ApiModelProperty(value="币种2兑换限制（每天）")
    private BigDecimal coin2LimitPerDay;

    @TableField(value = "coin2_limit_user_per_day")
    @ApiModelProperty(value="币种2用户兑换限制（每天）")
    private BigDecimal coin2LimitUserPerDay;


    /**
     * 价格，用币种2兑换币种1的价格
     */
    @TableField(value = "price")
    @ApiModelProperty(value="价格，用币种2兑换币种1的价格")
    private BigDecimal price;


    @TableField(value = "charge_percent")
    @ApiModelProperty(value="手续费率")
    private BigDecimal chargePercent;

    /**
     * 0:禁用 1:启用
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value="0:禁用 1:启用")
    private Integer status;

    @TableField(value = "CREATED_BY")
    @ApiModelProperty(value="")
    private String createdBy;

    @TableField(value = "CREATED_DATE")
    @ApiModelProperty(value="")
    private Date createdDate;

    @TableField(value = "UPDATED_BY")
    @ApiModelProperty(value="")
    private String updatedBy;

    @TableField(value = "UPDATED_DATE")
    @ApiModelProperty(value="")
    private Date updatedDate;

    public static final String COL_SWAP_PAIR_ID = "swap_pair_id";

    public static final String COL_coin1_ID = "coin1_id";

    public static final String COL_coin1_NAME = "coin1_name";

    public static final String COL_coin1_SYMBOL = "coin1_symbol";

    public static final String COL_coin1_LIMIT_PER_DAY = "coin1_limit_per_day";

    public static final String COL_coin2_ID = "coin2_id";

    public static final String COL_coin2_NAME = "coin2_name";

    public static final String COL_coin2_SYMBOL = "coin2_symbol";

    public static final String COL_coin2_LIMIT_PER_DAY = "coin2_limit_per_day";

    public static final String COL_PRICE = "price";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATED_BY = "CREATED_BY";

    public static final String COL_CREATED_DATE = "CREATED_DATE";

    public static final String COL_UPDATED_BY = "UPDATED_BY";

    public static final String COL_UPDATED_DATE = "UPDATED_DATE";
}